import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/Login/Login.vue'
import Reg from '@/views/Reg/Reg.vue'
import Main from '@/views/Main/Main.vue'
import Home from '@/views/Menus/Home/Home.vue'
Vue.use(VueRouter)

const routes = [
  { path: '/', component: Main, redirect: '/home', children: [{ path: 'home', component: Home }] },
  { path: '/login', component: Login },
  { path: '/reg', component: Reg },
  { path: '/main', component: Main }
]

const router = new VueRouter({
  routes
})

export default router
